package org.bambrikii.lang.translation.translationmodule.model;

import java.util.List;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

public class Translation {
	private Phrase phrase;
	private String sourceLanguage;
	private List<PartOfSpeech> partsOfSpeech;

	public Phrase getPhrase() {
		return phrase;
	}

	public void setPhrase(final Phrase phrase) {
		this.phrase = phrase;
	}

	public String getSourceLanguage() {
		return sourceLanguage;
	}

	public void setSourceLanguage(final String sourceLanguage) {
		this.sourceLanguage = sourceLanguage;
	}

	public List<PartOfSpeech> getPartsOfSpeech() {
		return partsOfSpeech;
	}

	public void setPartsOfSpeech(final List<PartOfSpeech> oartsOfSpeech) {
		partsOfSpeech = oartsOfSpeech;
	}

	@Override
	public String toString() {
		final ToStringBuilder b = new ToStringBuilder(this,
				ToStringStyle.MULTI_LINE_STYLE);
		b.append("phrase", getPhrase());
		b.append("sourceLanguage", getSourceLanguage());
		b.append("partsOfSpeech", getPartsOfSpeech());
		return b.toString();
	}
}
